import java.util.Scanner;



public class Text {
    @Override


    private String name;
    private int age;



    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int n=in.nextInt();
            for(int i=0;i<n;i++){
                for(int j=0;j<n;j++){
                    if(i==j||(i+j==n-1)){
                        System.out.print("*");
                    }else{
                        System.out.print(" ");
                    }
                    System.out.println();
                }
            }

        }

    }
    public static void main6(String[] args) {
        Scanner scan=new Scanner(System.in);
        int n= scan.nextInt();
        int m= scan.nextInt();
        while(n!=0){
            int temp=m%n;
            m=n;
            n=temp;
        }
        System.out.println(m);
    }
    public static void main5(String[] args) {
        Scanner scan=new Scanner(System.in);
        int n=scan.nextInt();
        int count=0;
        for(int i=0;i<32;i++){
            if((n&1)==1){
                count+=1;
            }
            n=n>>>1;
        }
        System.out.println(count);
    }
    public static void main4(String[] args) {
        Scanner scan=new Scanner(System.in);
        int n= scan.nextInt();
        if((n%2!=0)&&(n%3!=0)&&(n%5!=0)&&(n%7!=0)){
            System.out.println("是素数！");
        }else{
            System.out.println("不是素数！");
        }
    }
    public static void main3(String[] args) {
        int n=1000;
        while(n<=2000){
            if(n%400==0||(n%4==0&&n%100!=0)){
                System.out.println(n);
            }
            n++;
        }
    }
    public static void main2(String[] args) {
        int n=1;
        int sum=0;
        while(n<=100){
            if(n%10==9){
                sum+=1;
            }else if(n/10==9){
                sum+=1;
            }
            n++;
        }
        System.out.println(sum);
    }
    public static void main1(String[] args) {
        int n=1;
        while(n<=100){
            if((n%2!=0)&&(n%3!=0)&&(n%5!=0)&&(n%7!=0)){
                System.out.println(n);
            }
                n++;
        }
    }
}
